package com.hliushi.state.example01_right;

/**
 * @author: hliushi
 * @date: 2023/2/15 23:02
 **/
public class _Client {

    public static void main(String[] args) {
        TrafficLight trafficLight = new TrafficLight();
        trafficLight.switchToYellow();
        trafficLight.switchToGreen();
        trafficLight.switchToYellow();
        trafficLight.switchToRed();
        trafficLight.switchToGreen();
    }
}
